package com.zb.api.business.mapper;

import com.zb.api.business.entity.UserEntity;
import com.zb.api.common.models.UserVo;
import org.apache.ibatis.annotations.Param;

public interface  UserMapper {
    UserEntity Sel(int id);

    UserEntity getUserByUserNameAndPassword(UserEntity userEntity);

    UserEntity getUserByUserName(String username);

    int userRegister(UserVo userVo);

    int updateUserInfo(UserVo userVo);

    int updateUserPasswordById(@Param("password") String password, @Param("id") Integer id);

    UserEntity getInfo(Integer id);
}
